package com.twu.biblioteca;

public class Movie
{

    private final String name;
    private int year;
    private String director;
    private int rate;

    public Movie(String name, int year, String director, int rate)
    {
        this.name = name;
        this.year = year;
        this.director = director;
        this.rate = rate;
    }

    public Movie(String name, int year, String director)
    {
        this.name = name;
        this.year = year;
        this.director = director;
        this.rate = 0;
    }

    public String getName()
    {
        return name;
    }

    public int getYear()
    {
        return year;
    }

    public String getDirector()
    {
        return director;
    }

    public int getRate()
    {
        return rate;
    }
}
